﻿using GroupMeal.Foods;
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp.TenantManagement;

namespace GroupMeal.Orders
{
    /// <summary>
    /// 点餐详情
    /// </summary>
    public class MemberOrderDetail : AuditedEntity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 租户ID
        /// </summary>
        public virtual Guid? TenantId
        {
            get; set;
        }

        /// <summary>
        /// 会员订单ID
        /// </summary>
        public virtual Guid MemberOrderId
        {
            get;set;
        }


        /// <summary>
        /// 会员订单
        /// </summary>
        public virtual MemberOrder MemberOrder
        {
            get;set;
        }

        /// <summary>
        /// 租户
        /// </summary>
        public virtual Tenant?  Tenant
        {
               get;set;
        }

        /// <summary>
        /// 商家菜品Id
        /// </summary>
        public virtual Guid MerchantFoodId
        {
            get;set;
        }

        /// <summary>
        /// 菜品
        /// </summary>
        public virtual MerchantFood MerchantFood
        {
            get;set;
        }

        /// <summary>
        /// 原价
        /// </summary>
        public virtual float Price  
        {
            get;set;
        }

        /// <summary>
        /// 折后价
        /// </summary>
        public virtual float ActualPrice
        {
            get;set;
        }
    }
}
